function GridColumn(grid, column){
    this.grid = grid;
    this.column = column;
}

GridColumn.prototype.getControlRow = function (control) {
    for (var i=0; i<this.grid.getDataRowCount(); i++){
        if (this.getControl(i)==control) return i;
    }
    return null;
}

GridColumn.prototype.getControl = function (row) {
    return Framework.instance.getControlByNode(this.getControlNode(row));
}


GridColumn.prototype.getControlNode = function (row) {
    var cell = this.grid.getDataCell(row, this.column);
    var iter = new NodeIterator(cell);
    while (iter.hasNext()){
        var node = iter.next();
        if (Framework.instance.isControlNode(node)) return node;
    }
    return null;
}

GridColumn.prototype.getCell = function (row) {
    return this.grid.getDataCell(row, this.column);
}